package com.enjoyor.soa.traffic.core.tpcms.service;

import java.util.List;
import java.util.Map;

import com.enjoyor.soa.traffic.api.dto.tpcms.RltBayonetZoneDto;
import com.enjoyor.soa.traffic.core.tpcms.domain.PassCard;
import com.enjoyor.soa.traffic.core.tpcms.domain.RltBayonetZone;

/**
 * 关联卡口信息表操作
 * 
 * @param infoZone
 * @return
 */
public interface IRltBayonetZoneService {

    /**
     * 获取关联卡口
     * 
     * @param relationId
     * @return
     */
    public List<RltBayonetZoneDto> getRltBayonetList(String relationId);

    /**
     * 关联卡口
     * 
     * @param relationId
     * @param rltBayonetZones
     * @param username
     */
    public void insertRltBayonet(List<RltBayonetZone> rltBayonetZones, String username);

    /**
     * 取关卡口
     * 
     * @param map
     * @param username
     */
    public void deleteRltBayonet(Map<String, Object> map, String username);

    /**
     * 单个卡口关联
     * 
     * @param rltBayonetZone
     * @param username
     */
    public void insertRltBayonetForOne(RltBayonetZone rltBayonetZone, String username);

    /**
     * 批量导入卡口
     * 
     * @param map
     * @param username
     */
    // public void insertRltBayonetBatch(List<RltBayonetZone>
    // rltBayonetZoneList, String username);

    /**
     * 根据通行证信息更新redis
     * 
     * @param passTrucksList
     *            通行证List信息
     */
    public Boolean setRedisByCardList(List<PassCard> passTrucksList);
}
